<script lang="ts" setup>
import PolygonalLine from "./PolygonalLine.vue";
import type { Point } from "./types/point";

defineProps({
  lines: {
    type: Array as () => Point[][],
    required: true
  }
});
</script>

<template>
  <main>
    <PolygonalLine
      v-for="(points, idnex) in lines"
      :key="idnex"
      :points="points"
      line-width="2px"
      radius2="4px"
      radius1="4px"
    ></PolygonalLine>
  </main>
</template>